package fun.wlfj.flashlight;

import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
import com.github.javaparser.ast.body.ConstructorDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;

public class FlashLightAST2Code {

	public static void main(String[] args) {
		ClassOrInterfaceDeclaration myclass = new ClassOrInterfaceDeclaration();
		myclass.setName("MyClass");
		
		// int haha;
		myclass.addField("int", "haha"); 
		
		/*
		 * String getOrz() {
    	 * }
		 */
		MethodDeclaration mymethod = new MethodDeclaration();
		mymethod.setName("getOrz");
		mymethod.setType("String");
		myclass.addMember(mymethod);
		
		ConstructorDeclaration mycons = new ConstructorDeclaration();
		mycons.setName("MyClass");
		myclass.addMember(mycons);
		
		System.out.println(myclass);
	}

}
